Use G_OBJECT_TYPE_NAME instead of g_type_name_from_instance
authorAlexander Larsson <alexl@redhat.com>
Fri, 7 Feb 2020 07:44:29 +0000 (08:44 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 7 Feb 2020 07:44:29 +0000 (08:44 +0100)
gtk/gtkicontheme.c

index 5c4ce8160c97070c819f37bf1969a23c5183c691..e108567ffb4b8bf094647f1a7278ca1831352da6 100644 (file)
@@ -3622,7 +3622,7 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme       *self,
     }
   else
     {
-      g_debug ("Unhandled GIcon type %s", g_type_name_from_instance ((GTypeInstance *)gicon));
+      g_debug ("Unhandled GIcon type %s", G_OBJECT_TYPE_NAME (gicon));
       icon = icon_paintable_new (size, scale);
       icon->icon_name = g_strdup ("image-missing");
       icon->filename = g_strdup (IMAGE_MISSING_RESOURCE_PATH);